package com.greenzebras.geocache.cachedata;

import java.io.Serializable;


public class Cache implements Serializable {

	private static final long serialVersionUID = -8328915933762562330L;
	
	private String id; 
	private CacheCoordinate cacheCoordinate = new CacheCoordinate();
	private CacheType cacheType = CacheType.TRADITIONAL;
	private String name = "";
	private String description = "";

	public Cache() {
	}

	public String getID() {
		return id;
	}
	
	public void setID(String id) {
		this.id = id;
	}
	
	public CacheCoordinate getCacheCoordinate() {
		return cacheCoordinate;
	}

	public Cache setCacheCoordinate(CacheCoordinate cacheCoordinate) {
		this.cacheCoordinate = cacheCoordinate;
		return this;
	}

	public CacheType getCacheType() {
		return cacheType;
	}

	public Cache setCacheType(CacheType cacheType) {
		this.cacheType = cacheType;
		return this;
	}

	public String getName() {
		return name;
	}

	public Cache setName(String name) {
		this.name = name;
		return this;
	}

	public String getDescription() {
		return description;
	}

	public Cache setDescription(String description) {
		this.description = description;
		return this;
	}
	
	public void copy(Cache cacheToCopy) {
		cacheCoordinate = cacheToCopy.cacheCoordinate;
		cacheType = cacheToCopy.cacheType;
		name  = cacheToCopy.name;
		description  = cacheToCopy.description;
	}
}
